Yey!

Posts 115 of 71 · Page 1 of 5
Yey!
Finished the practical part of the follow/farm bot


Blame bandicam --^

Before selecting PID with KRelay


It is split in 2 parts, an external application (made in vb (had to specify)) that sends keystrokes based on its title (when activated).
The external applications title has this format

yourX|yourY|targetX|targetY

Every 100ms it calculates where it has to move, and moves there, using the shortest path possible to get to the target (99% of the time, it's diagonally) (added linear movement that doesn't move with the hypotenuse, and takes the longer path)

 
How does it move there?
keybd_event, holds keys and releases them when its done.


So that means you can use an internal plugin you made yourself in order to change the coords, aka make your own followbot plugin, that uses a better algorithm than mine to get the coordinates of the target.

The internal plugin gets your and your targets coordinates (thanks pixelzerg for his PlayerStatus plugin that I used as reference, and crazyjani for pointing me to the correct packet) and sets the internal applications title as the coordinates.

 
Why the title?
The title is easily accessible by both the external and internal app. If I did something like save in a notepad (would be stupid) it would take more processing power (and illegal crossthread calls). Title is easy and quick.


Usage:

Before - After activation

KRelay 0% to 5% - 25%
External application - 0% - 0% to 4% (very very low)

In the gif the total cpu usage is 90%, because of the recording and the client.


 
Which player is chosen to be followed?
The last player you tped to.

Why? Since the thing sends a lot of keystrokes, constantly, until it is terminated, your mouse stays free, but your keyboard doesn't. Thus you cant send commands, because the program will have your keyboard busy with sending w-a-s-d keystrokes. Thus what can you do with your mouse? TP.

So if you need to change target, tp to them and you changed your target. No need to stop, change command, reopen.



So what do you think?
Pretty well thought out bot.

I like the cursor follow option. Definitely will be good.
Quote Originally Posted by Ahl View Post
Pretty well thought out bot.

I like the cursor follow option. Definitely will be good.
Well that was more for debugging. But if you dont want to use the keyboard to move well you can use the mouse now, kind of a sub feature


- - - Updated - - -

Quote Originally Posted by meap01 View Post
if you'll release this (pls do), everyone will have a white star
I will release it, but still some problems to fix, for one, its not fully automated. If you nexus, it wont automatically go back and stuff
Quote Originally Posted by New View Post

I will release it, but still some problems to fix, for one, its not fully automated. If you nexus, it wont automatically go back and stuff
nice, cant wait to get my blue star account to white
Quote Originally Posted by meap01 View Post

nice, cant wait to get my blue star account to white
pixelzergs and kronks ones are better because they dont use keystrokes, they use packets.

Packets were too confusing for me (and for everyone, afaik pzerg and kronks used a modified client(but still used packets, just not move packets)) so I used keybd_event aka keystrokes

So while it's running you wont be able to chat... it has its cons, and im not very proud of them. But it does work, and it doesnt consume a lot of resources.


Quote Originally Posted by Vegan Feminist View Post
If you do add it, I'd appreciate if it was toggleable.
I guess I can do that no problem, do you mind telling me why though?
Quote Originally Posted by New View Post


pixelzergs and kronks ones are better because they dont use keystrokes, they use packets.

Packets were too confusing for me (and for everyone, afaik pzerg and kronks used a modified client(but still used packets, just not move packets)) so I used keybd_event aka keystrokes

So while it's running you wont be able to chat... it has its cons, and im not very proud of them. But it does work, and it doesnt consume a lot of resources.




I guess I can do that no problem, do you mind telling me why though?
Don't stress out. You have one major pro they don't. It's free.
if you'll release this (pls do), everyone will have a white star
Quote Originally Posted by New View Post
I will release it, but still some problems to fix, for one, its not fully automated. If you nexus, it wont automatically go back and stuff
If you do add it, I'd appreciate if it was toggleable.
Quote Originally Posted by New View Post
I guess I can do that no problem, do you mind telling me why though?
I only planned on using cursor follow so I didn't have to press WASD lmao. Auto-reconnect would be pretty obvious to anyone who has me locked.
Quote Originally Posted by Vegan Feminist View Post
I only planned on using cursor follow so I didn't have to press WASD lmao. Auto-reconnect would be pretty obvious to anyone who has me locked.
Oh alright. Just a note you wont be able to chat (if you press enter, all of the wasd buttons being pressed by the program will be spamming your message) but you will be able to use buttons to play (EG: camera rotation with Q,E etc.)

The cursor only part is 100% ready, so if you want I can give it to you now via skype or something, otherwise wait for release.
Can you use it in background or will i need Virtuel machine? when you release
Quote Originally Posted by DonBerger View Post
Can you use it in background or will i need Virtuel machine? when you release
You can't use in the background, the window needs focus while its farming. Probably this or the next week, unless I run into some problem. Might even release sooner, if I'm lucky.


- - - Updated - - -

-update

algorithm to check if player is in godlands is done, but it's semi-manual to get it started.

the recon is done and also not done, it's done but you need the client reconnect handler by Kronks, I could code a new reconnect, but why should I if it's built-in in krelay right?
Another idea you could implement is a ping checker which would dc you if it detects a big spike.
White star gonna be worth 0 lmao
Quote Originally Posted by Chanchanbimy View Post
White star gonna be worth 0 lmao
I will be in it for the fame so I can upgrade my pet yard to divine, feed my pet and open dye fame mystery boxes.
Posts 115 of 71 · Page 1 of 5
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?