Welcome!

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

Sign up now!

Question Open Source Bots and Code

Joined
Jan 26, 2016
Messages
4
Hi there,
I used to code for powerbot 5-6 years ago and am interested in starting again for Runemate. I was very happy to see the Runemate API is very similar to what I used to code with.

So my question: I saw on one post someone mention an open-source bot that people are working on. Is this a typical thing? I was interested in writing a combat bot for the stronghold of security (Ankous, Flesh crawlers), because no other bots on the SVN seem to be able to handle them. But I know there are good fighting scripts out there and I don't want to reinvent the wheel for smart fighting/looting/etc. If there are code bases I can pull from (and obviously credit) that would be awesome.

Anyone know anything regarding this? Thanks!
 
Joined
Dec 10, 2014
Messages
3,332
Hi there,
I used to code for powerbot 5-6 years ago and am interested in starting again for Runemate. I was very happy to see the Runemate API is very similar to what I used to code with.

So my question: I saw on one post someone mention an open-source bot that people are working on. Is this a typical thing? I was interested in writing a combat bot for the stronghold of security (Ankous, Flesh crawlers), because no other bots on the SVN seem to be able to handle them. But I know there are good fighting scripts out there and I don't want to reinvent the wheel for smart fighting/looting/etc. If there are code bases I can pull from (and obviously credit) that would be awesome.

Anyone know anything regarding this? Thanks!
fbfj81.png


Sadly there are no open source fighters at this point in time.
I do plan to create an open source tutorial series sometime soon, but it'll probably be after Spectre is released.
As for smart fighting/looting/etc. It's usually a good idea to have your own implementation to make it harder for bot detection systems to detect your bot.
 
Joined
Nov 2, 2015
Messages
302
As for smart fighting/looting/etc. It's usually a good idea to have your own implementation to make it harder for bot detection systems to detect your bot.

Or one that mimicks human behavior better yet ;). So even if they know how it works it's still not detectable
 
Joined
Dec 10, 2014
Messages
3,332
Or one that mimicks human behavior better yet ;). So even if they know how it works it's still not detectable
Yeah true, but it seems like a lot of bots just use .nearest() or .sortByDistance().limit(3).random(), which is something you don't want to copy XD
 
Joined
Nov 2, 2015
Messages
302
Yeah true, but it seems like a lot of bots just use .nearest() or .sortByDistance().limit(3).random(), which is something you don't want to copy XD
Agreed. For learning, what would you think is best? A random disposure of each of them?
 
Joined
Dec 10, 2014
Messages
3,332
Agreed. For learning, what would you think is best? A random disposure of each of them?
For a while I was filtering and sorting them based on their distance, so distance < (the nearestDistance + a random amount), and then returning null if the result is empty, or if it's not, returning results.get(Random.nextGaussian(0, results.size(), 0);

So the nearest one is returned the majority of the time, but the others are also returned in lessened amounts due to the gaussian distribution.

Now I use something different, but I can't really share that xD
Edit: For Npcs, it's relatively easy, for resources like trees and ores, there's a better way to go about it based on respawn times and resource availability times (like average tree life etc.)
The best way to do it, although time consuming, is to pay attention to how you play legit, probably record it as well, and later on write down how you interact with stuff and model your selection interaction based off of that. I don't do that though xD
 
Joined
Nov 2, 2015
Messages
302
If runemate had a playersense nearest that would be sweet. And maybe it would be incorporated more allowing lower detection ;).

Not that runemate should do all the work for us.
 
Joined
Dec 10, 2014
Messages
3,332
If runemate had a playersense nearest that would be sweet. And maybe it would be incorporated more allowing lower detection ;).

Not that runemate should do all the work for us.
Eh a PlayerSense nearest would be pretty weird, because nearest is the one with the least distance xD, and in specific scenarios you will always want to get the nearest one.
 
Joined
Jan 26, 2016
Messages
4
Interesting discussion. thanks guys. Looks like I'll write it from scratch with a simple algorithm and then make it more complex as I see fit. Thanks!
 
Top