Hacker News new | ask | show | jobs
by dwetterau 3792 days ago
I initially fell in love with programming by botting Runescape. If you want to look at some old (and very very poor quality) code to see what the botting scripts looked like, this was my most popular one: http://pastebin.com/WENWkWEW

There were some really interesting "innovations" in those scripts compared to the other free ones that were available at the time. For example, this script would allow the character to harvest and store wood from trees that would regrow / respawn. This script would time each hardcoded tree to count how long it had been de-spawned (dead) in order to move the bot user to wait by the tree that had been de-spawned the longest when all of the others were de-spawned. This was a good way to avoid being reported because most bots would just wait by the last tree to de-spawn and then instantly start moving to the first one that respawned.

Some other interesting tricks could be found in the "antiBan" method in a lot of scripts. Given a random input this script would move the mouse in some random ways, check some random stats, move the camera around, etc. One additional "antiBan" approach that I implemented for this script was to "take breaks". The idea was that a real player would probably not be watching their account and harvest the wood with perfect efficiency all of the time. Telling the bot to "take breaks" meant that it would turn itself off entirely for a short time (maybe a minute?) and just not react to any input, as if you were using the restroom or doing something else.

I could talk about this stuff for ages, it was great fun. :)

P.S. I have a tiny blurb about it on my website too: https://www.dwett.com/projects/#runescape-bot

1 comments

I actually wrote the YewMurder script that was the first one to do tree timing (AFAIK), unforunately all the older posts all seem to have been purged from powerbot forums so we can't know for certain. Maybe just great minds think alike.

And somebody preserved my script on pastie for prosperity: http://pastie.org/pastes/1603353

Found a video of it: https://www.youtube.com/watch?v=it8QwmDj7Pw