Hack Forums
[Java] Making a bot for a java/browser game - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] Making a bot for a java/browser game (/showthread.php?tid=4038317)

Pages: Pages 1 2


Making a bot for a java/browser game - yasje - Feb 3, 2014

Hello all,

I am playing a game called: Tibiame

and i want to make a bot for it. There is already one exists, but i wonder how he made it?

i noticed some programs like: Kemulator? and uopilot?
Are there more ways to make a bot for it?

i want to make something like this:
[img]http://tibiame-bot.com/img/bot5.png[/img]

i hope you guys can help me out!

Cheers! 😁


* - Terry A. Davis - Feb 4, 2014

Personally, I'm thinking C# would be better.

However, you said it uses Java which would mean it starts the Java process on your end (Like Minecraft, CoD, BF, Minesweeper)

Therefore, you could inject values like a trainer of sorts, you would need to use CheatEngine or similar to get the offsets of course. But once that is out of the way you'd make a simple program in pseudo code like this:

int main()
{
writememory(0xffffff,100/*health*/);
writememory(0xeeee,999/*Damage*/);
}

Get what I am saying?


* - Feminist - Feb 4, 2014

You can use reflection or injection to make a bot like that, or you could simply just make your own client (if its a simple game) by RCE the client and seeing how the packets and etc are handled.

(Feb 4, 2014 12:00 PM)Perfect Cell Wrote:  Personally, I'm thinking C# would be better.

However, you said it uses Java which would mean it starts the Java process on your end (Like Minecraft, CoD, BF, Minesweeper)

Therefore, you could inject values like a trainer of sorts, you would need to use CheatEngine or similar to get the offsets of course. But once that is out of the way you'd make a simple program in pseudo code like this:

int main()
{
writememory(0xffffff,100/*health*/);
writememory(0xeeee,999/*Damage*/);
}

Get what I am saying?

Sorry, you're not going to be doing that for Java.

Also, OP, you should have posted this in the Java section


* - monkaS - Feb 4, 2014

Could you not just decompile the code and find out yourself?


* - Deko - Feb 4, 2014

You can use Pixel detection or reflection or injection.

Pixel detection is only useful if the image can stay constant and the game is 2d imo.


* - yasje - Feb 4, 2014

(Feb 4, 2014 02:52 PM)Ceaseless Wrote:  Could you not just decompile the code and find out yourself?

how do i do that?

its full of jar files and dll.


* - yasje - Feb 4, 2014

(Feb 4, 2014 12:07 PM)Feminist Wrote:  You can use reflection or injection to make a bot like that, or you could simply just make your own client (if its a simple game) by RCE the client and seeing how the packets and etc are handled.

Sorry, you're not going to be doing that for Java.

Also, OP, you should have posted this in the Java section

Thankyou for the post, and yes it could be by java to but i tought maybe it can do in other codes?

but thats smart never heard of refelection.

and injection is an created bot by dll right?

and what you mean by rce the client? use wireshark and see their package sends?


* - yasje - Feb 4, 2014

it looks likes this:

http://dd6xle2n4vut.cloudfront.net/com.cipsoft.tibiame_6.png


* - Orianthi - Feb 4, 2014

(Feb 4, 2014 03:52 PM)yasje Wrote:  how do i do that?

its full of jar files and dll.

First step: http://jd.benow.ca/
Second Step: http://www.youtube.com/watch?v=ByLUeem7680

Enjoy.


* - Orianthi - Feb 4, 2014

(Feb 4, 2014 04:09 PM)yasje Wrote:  it looks likes this:

http://dd6xle2n4vut.cloudfront.net/com.cipsoft.tibiame_6.png

Dude I seen already a C++ thread, Java, and AutoIT thread. Choose one language.


* - yasje - Feb 4, 2014

(Feb 4, 2014 04:13 PM)Ace700 Wrote:  First step: http://jd.benow.ca/
Second Step: http://www.youtube.com/watch?v=ByLUeem7680

Enjoy.

Thankyou i gonna watch it, and check all the hunderds of jar files haha :P


* - yasje - Feb 4, 2014

(Feb 4, 2014 04:14 PM)Ace700 Wrote:  Dude I seen already a C++ thread, Java, and AutoIT thread. Choose one language.

its hard to choose, injection or client cant choose


* - 3 Kings - Feb 4, 2014

Java based online games are easy to make bot clients for (just look at RS).


* - Orianthi - Feb 4, 2014

(Feb 4, 2014 04:21 PM)yasje Wrote:  its hard to choose, injection or client cant choose
Well then maybe start with a language you know. AutoIt is ment to know some coding.


* - Deko - Feb 4, 2014

If you don't have experience then go with Image/Pixel detection, it seems like the perfect game for it.