Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Best places to learn how to code a basic bot?

Joined
Sep 17, 2017
Messages
22
Hello Runemate....


Today, I started to focus my skills in runescape bot development but haven't found any good places to learn from. Runemates API does look good but that doesn't show me how to select an area or coordinate to select a region where i want the bot to farm or go from rock to rock mining iron gold or any other ore. That is just an example.


I want to give back to this community and actually release free bots for slayer, divination, tree cutting, agility and all the other skills. These bots will probably be changed a lot to prevent any detection system from picking the script up due to many people using the script. This will take place every few weeks and managed by myself.



My name is Brad, I am an 18 year old network engineer. My skills are working mainly with performance and security normally with websites or game servers. IP's and other networking related services.

I am from the UK born and raised. That's about it.



If you could help me in any way at all even just a suggestion that would be greatly appreciated.
Thanks :)

-Hyper​
 
Joined
Oct 18, 2015
Messages
11
I wrote my first bot following this video guide from Snufalufugus. Can recommend; it was a good way to understand the concept of how a treebot works and some basic api functions.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

From there on it's just about digging through the tutorials section and the API to find the things you need. Goodluck writing your bots :). It will take some time and experimenting before you'll get to writing complex bots but Rome wasn't build in a day.
 
Last edited:
Joined
Jun 24, 2014
Messages
172
Are you a network engineer as in you already finished the career and have the degree? If so, I'm convinced you would have taken at least 2 or 3 programming classes.

All you need is to know how to program. If you do, then just read the documentation of the RuneMate API and you're ready to make bots. You won't find a tutorial on "how to write a bot that switches from iron ore to gold ore and later to runite ore."

You've mentioned, "how to select an area", by which I assume you mean how to create one as well as checking if the player is inside it. For starters you got a Area.Rectangular class. One of constructors takes two parameters, two Coordinates, from which a rectangle is constructed. Coordinates, according to the API docs, are the way to represent a coordinate (thanks self-explanatory names) in the game.
After that, the Area.Rectangular class provides a method called contains(), which receives a Locatable.
According do the docs, a Player, extends Actor which implements Locatable. So you can pass your own player to this method, or other things that implement Locatable, and know if it's inside the area.

I have not written one single RuneMate bot and I can conclude this just from reading the documentation. All you need to know is how to program and basic Java. No need for tutorials that teach you how to do some specific X thing which in the long run might actually hurt you.

So pick a book or start an online course. I'm a fan of the latter. There are plenty of online resources to learn how to program.
 
Java Warlord
Joined
Nov 17, 2014
Messages
4,906
All you need is to know how to program. If you do, then just read the documentation of the RuneMate API and you're ready to make bots. You won't find a tutorial on "how to write a bot that switches from iron ore to gold ore and later to runite ore."
"Knowing how to program" is ridiculously oversimplified term.
Also the API doesnt have very comprehensive documentation so that wouldnt be the best place to look out for guidance.
And there are a few open source bots on the bot store and numerous resources and tutorials in the section i've linked one comment above.
 
Joined
Jun 24, 2014
Messages
172
"Knowing how to program" is ridiculously oversimplified term.
Also the API doesnt have very comprehensive documentation so that wouldnt be the best place to look out for guidance.
And there are a few open source bots on the bot store and numerous resources and tutorials in the section i've linked one comment above.

Ok, understanding of how conditions and loops work. Knowing how inheritance and maybe generics work in Java. Then some data structures for example dynamic arrays or maps.

Now you've got all the tools to write a bot, what you need now is practice, a lot of practice. As I stated above you're not gonna find a tutorial to do X then Y and then Z. That's something you'd have to build yourself.

Linking to the tutorials and resources section isn't the best idea either, for someone who hasn't ever written a single line of code, that person is only going to find himself either copy pasting, or doing exactly the same thing always and not creating anything new (e.g. iron powerminer, willow powerchopper, etc) . That's why I recommended a course to learn the basics of programming.
 
Java Warlord
Joined
Nov 17, 2014
Messages
4,906
Linking to the tutorials and resources section isn't the best idea either, for someone who hasn't ever written a single line of code, that person is only going to find himself either copy pasting, or doing exactly the same thing always and not creating anything new (e.g. iron powerminer, willow powerchopper, etc) . That's why I recommended a course to learn the basics of programming.
I've linked that because there are guides which specifically state that you need experience in relevant languages and paradigms.
 
Top