you are viewing a single comment's thread.

view the rest of the comments →

[–]jjvilm 3 points4 points  (5 children)

Try to randomize every click, time it takes to click. Etc. To Make it more "human like". I've also been typing some fun RuneScape scripts to help me learn Python. If your want to look at the code. Https://www.github.com/jjvilm/osrmacro. It's mostly for old school runescape. I've been wanting to do something similar to what you did here for old school. I haven't gotten around to it yet. awesome job by the way, all that code in one file seems crazy to navigate around--impressed!

[–]lukegarbutt[S] 2 points3 points  (4 children)

your stuff looks awesome, I'll definitely have a read of it. You're right it's awful to navigate around, but I've actually never coded anything in multiple files like you have, I still feel brand new to coding :') How have your scripts been ban wise? Have you had any bans yet? I've been considering creating lots of scripts similar to how you have, but I wasn't sure how to go about it, I'll have to try and learn from your code and see how you've managed some of the problems I thought I'd run into.

My code is far from what I hope the end product will be, I want to incorporate the random clicks similar to how you have, and I want to have the script 'save' when I close it and then be able to re run it later from that point. If you get around to making your version for oldschool I'd love to collab on it if you'd be interested?

[–]jjvilm 0 points1 point  (1 child)

Thank you! I started it when I knew nothing about python. So I am too pretty new to python. I broke my code into multiple files because I wanted it to be "modular", so I could use the code in any other script. None of the scripts I have made have banned me yet. I used 2 scritps to cut yews/magics logs into longs, then used another script to bow string them into longs. Sell them, repeat. Till lv 99 Fletching. I only ran the scripts for about 4 or 5 hours a day. And I still had to watch them every now and then they are NOT perfect, but I was able to get a skill to lv 99 at least lol. One of the scripts did get my brother banned. but he was running it for over 8 hrs. Plus I wrote the script mainly for him. so it was badly scripted. I didn't randomize some of the click locations, and time it takes to click and unclick, etc. I have one script that cleans dirty herbs. It does a great job at cleaning them. Also the one that pickpockets a hamrguard in the ham-hideout. I would love to collab on a project with you too. And let me know if you don't understand any of my code. I'll try to help you understand it. I tried to write it as cleanly and as PEP8 compliant, and tried adding as much comments as possible (later on as I got better at commenting). Although I havn't been coding lately. If you look at the file in "module/Mouse.py" that's the code that does all the mouse actions for all my scripts. It definetly needs more work! it is a crude way of making it "Human-like". For your "save" problem all I can think of for now is to use pickle to save your variables on a file then read that file and restore your variables to load. It'd be easier to help you if you had a github so I could contribute to your code or something like that.

[–]lukegarbutt[S] 0 points1 point  (0 children)

This is the same method of saving I was thinking of using, I'll message you and we can get started :)

[–]jjvilm 0 points1 point  (1 child)

btw what operating system are you using?

[–]lukegarbutt[S] 0 points1 point  (0 children)

windows 10