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 Any experienced bot writers here? A couple of questions

Joined
Jan 23, 2020
Messages
3
First of all, I'm having a blast writing bots with runemate.
I've done searches already here and have asked in the discord, but no luck.

1. Any way to force quick mouse movements?

Clouse is often slow when performing interact("Attack") on an enemy, taking up to 5 seconds.
I saw some Path generators in the API, could someone explain what the different ones do?
I would like the mouse to take most direct and rapid path when click on an enemy.

2. Any way to display the cursor on screen? It would be nice to figure out what the mouse is trying to do in certain cases, since it can behave oddly.

3. Is there a place somewhere Runemate automatically records the in-game chat log? I can implement something like this using the game chat listener, just wondering if it's done automatically.

Many thanks,
Poop jones
 
Hexis bots go brrr
Joined
Dec 9, 2016
Messages
4,054
First of all, I'm having a blast writing bots with runemate.
I've done searches already here and have asked in the discord, but no luck.

1. Any way to force quick mouse movements?

Clouse is often slow when performing interact("Attack") on an enemy, taking up to 5 seconds.
I saw some Path generators in the API, could someone explain what the different ones do?
I would like the mouse to take most direct and rapid path when click on an enemy.

2. Any way to display the cursor on screen? It would be nice to figure out what the mouse is trying to do in certain cases, since it can behave oddly.

3. Is there a place somewhere Runemate automatically records the in-game chat log? I can implement something like this using the game chat listener, just wondering if it's done automatically.

Many thanks,
Poop jones
1. You might have inefficient code, review it and see where you can save time. You can increase the mouse multiplier and change the Mouse path generator as well.

2. Yes, with a custom written overlay.

3. You can implement the ChatboxListener and register your main class with the event dispatcher.
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
7,099
Also if you have quick questions like this, you can join the dev slack. People are on there quite a bit.

Cheers poop jones
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
7,099
Is that the same thing as the dev discord chat? I'm on that one already, not sure if they're the same thing though.

Yours truly,
Poop jones

Dear Poop,

I'm not as active in the slack/discord lately so I don't know if it's changed, but when I joined I was told slack was used more for dev stuff. But I assume either will get you answers.

Faithfully,
Cuppa
 
Hexis bots go brrr
Joined
Dec 9, 2016
Messages
4,054
I isolated what could be causing the slow mouse movements down to the .interact("Attack") API call.
I will give the PathGenerators are try. Do you know what is the difference between these? Can't find any more info anywhere.

static Mouse.PathGenerator DEFAULT_PATH_GENERATOR
static Mouse.PathGenerator HOPPING_PATH_GENERATOR
static Mouse.PathGenerator MLP_PATH_GENERATOR

Thanks a lot for the response, I appreciate it. I will work on implementing #2 and #3.
 


Is that the same thing as the dev discord chat? I'm on that one already, not sure if they're the same thing though.

Yours truly,
Poop jones
Default path generator is Clouse. User-generated data. MLP is the result of a machine learning algorithm, good for high speed interactions (maybe a good choice for you). Mouse hopping is as it sounds, the mouse hops immediately to the place it needs to click on.

You could do a combination of checking if you’re hovering, checking if the right-click menu is open (Menu class), and interacting with the menu item. Might improve the recovery time.
 
Also, slack and discord are synonymous for the most part, the help you’ll receive is the same.
 
Top