Originally Posted by Blupig
I'd use C++ if you're going to start making bots, it'll make your life a whole lot easier. If you know C, then C++ won't be too hard to adjust to.
Secondly, if you want to make a new language, having it compile would be cool - But, for the sake of your project, you might want to just use an interpreted language for scripts and such. A good example of bots that use interpreted languages are my scriptable autotalker and autoclicker (the autotalker can be found in the verified programs section) as well as RAHbot for RSCE and the old RS bots for RSC AutoRune and STS/sBot.
Thirdly, if you are to call it something, don't call it RSC+. That'll be confusing since RSC players might think your bot for RSC (Runescape Classic).
And lastly, what do you mean translating all the pixels into variables? Do you mean you want to make some kind of 1x1px image array or vector (idk if there are vectors in C, if there aren't that's another reason to use C++) and store the pixels in there? If so, that's going to be really really slow since the pixels are constantly updating and there are thousands within a single frame of the RS client. If you're really bent on making a bot, go for C++ and use some Direct X or Open GL hooking. That's really the only way to make anything useful after the nuke.
Hey blupig, thanks for your help.
I'll consider moving onto C++ but I still have a lot of things to learn on C. When would the right time be to move onto C++?
What do you mean with interpreted languages? How would I go on learning about coding compilers? it seems like an odd thing to learn. And I have in mind kind of keeping the language C based. Like modifying a compiler to read "my language". What knowledge do you need to have to code a compiler?
What Screen recognition system do you think would be viable.
What I was trying to do was simply creating an array of X and an array of Y and assorting them values, but it seems really complicated. Ideally I would need to only map objects and NPCs within game coordinates instead of pixels coordinates. I am strongly tending to base the bot on "if" loops.
I have no clue of structures or protocols to be used in programming, I have never programmed anything serious, I am mostly an amateur.
My sketch of the bot would be:
Data recognition( Transforming screen,configuration and character data to variables)
Mapping (Transforming screen data to Coordinates, NPCs and Objects)
Macro (If this, that,these and those)
Control Method(Call physical alarm if something goes wrong, I die, get stuck etc...)
I am also planning to add a database so I don't need to enter the same data over and over.
And a "database" of functions like, click, attack, walk, bank.Is there anyway a separate or derivate language can make things easier for coding bots?
Thanks and do you think I am the right track? I am all an board for reading long articles or essays on certain programming aspects, but I have never found data on HOW to actually program I just read about pointers arrays libraries etc... but never how to use them for certain purposes, I just deduce and imagine how to use them for what I need, but sometimes stuff either I can't deduce or I have a very messy way of doing it or not an optimal, what should I look for if I'm looking for common programming structures, problems,paradigms. The only practical things I have ever learned to do are binary search trees and bubble sorting, am I clear as to what I am looking for?