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: <a href="http:&#x2F;&#x2F;pastebin.com&#x2F;WENWkWEW" rel="nofollow">http:&#x2F;&#x2F;pastebin.com&#x2F;WENWkWEW</a><p>There were some really interesting &quot;innovations&quot; 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 &#x2F; 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.<p>Some other interesting tricks could be found in the &quot;antiBan&quot; 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 &quot;antiBan&quot; approach that I implemented for this script was to &quot;take breaks&quot;. 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 &quot;take breaks&quot; 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.<p>I could talk about this stuff for ages, it was great fun. :)<p>P.S. I have a tiny blurb about it on my website too: <a href="https:&#x2F;&#x2F;www.dwett.com&#x2F;projects&#x2F;#runescape-bot" rel="nofollow">https:&#x2F;&#x2F;www.dwett.com&#x2F;projects&#x2F;#runescape-bot</a>