Page 1 of 1

The Mana World Bot

Posted: 29 Apr 2011, 18:07
by khuil
Hello. I was wondering if i would be allowed to make a bot that would whisper me in game?(Just for educational purposes). I tried to get to the loginscreen before asking you but i failed. I send the "connect" packet(i believe it was just the string "0u") and then the auth packet with my name and password... So far so good but when it comes to logging in i get stuck.

It seems like the server gives you a packet with a random(?) letter in the end of it. Something like this:

Code: Select all

c�$�http://updates.themanaworld.org/i�O�6 XPé{!�LQ]¦����2011-04-29 16:40:00.741���Q¡ÀêThe Mana World������L�����
or in hex

Code: Select all

63 00 24 00 68 74 74 70 3A 2F 2F 75 70 64 61 74 65 73 2E 74 68 65 6D 61 6E 61 77 6F 72 6C 64 2E 6F 72 67 2F 69 00 4F 00 36 20 58 50 E9 7B 21 00 4C 51 5D A6 00 00 00 00 32 30 31 31 2D 30 34 2D 32 39 20 31 36 3A 34 30 3A 30 30 2E 37 34 31 00 00 00 01 51 A1 C0 04 EA 17 54 68 65 20 4D 61 6E 61 20 57 6F 72 6C 64 00 00 00 00 00 00 4C 00 00 00 00 00
where the captial L is the random letter.(Note: this was done trying to connect to a homemade server, just dealing with auth but also with a homemade client to the normal server)

I think that this causes problems as neither the server nor the client sends any more data after that point.

Do you have any idea of how i can get a hold of this letter/character?


/Oscar

Re: The Mana World Bot

Posted: 29 Apr 2011, 18:45
by Crush
Creating bots is allowed as long as they are not active while you are AFK. Bots which do run while you are AFK can be run when you have the permission of the server administrators. The most important condition for getting permission for an unattended bot is that it doesn't level on its own.

Unfortunately I can't help you with your technical problem because I am not familiar with the eA netcode. But how about looking at the client sourcecode to find out how it does it? Might be more informative than just a network dump.

Re: The Mana World Bot

Posted: 29 Apr 2011, 18:54
by khuil
Crush wrote:Creating bots is allowed as long as they are not active while you are AFK. Bots which do run while you are AFK can be run when you have the permission of the server administrators. The most important condition for getting permission for an unattended bot is that it doesn't level on its own.

Unfortunately I can't help you with your technical problem because I am not familiar with the eA netcode. But how about looking at the client sourcecode to find out how it does it? Might be more informative than just a network dump.
Thanks for your reply & information Crush! Im afraid im not very good at looking into someone elses code, especially not this (imo) complicated code. I will however try again.

Thanks!:)

Re: The Mana World Bot

Posted: 29 Apr 2011, 22:55
by yourmistakes

Re: The Mana World Bot

Posted: 05 May 2011, 13:40
by khuil
yourmistakes wrote:Y U NO FORUM SEARCH?
http://forums.themanaworld.org/viewtopi ... whisperbot
Sorry hehe, and thanks i will look into it! :))

Re: The Mana World Bot

Posted: 05 May 2011, 14:32
by Bertram
Hi,

New C++ dev are always welcome, if I may :)

Best regards.

Re: The Mana World Bot

Posted: 05 May 2011, 17:00
by Kage
khuil for details on the protocol look at the netcode in the Mana client... the best documentation is there.

Re: The Mana World Bot

Posted: 06 May 2011, 06:19
by o11c
Personally, I think the network layer of the tmwAthena source code is clearer (it was written by people who knew what they were doing, unlike much of eAthena) - on my list of things to do is separate out from ladmin a library, which could also be used for authorized AI scripts.
The only confusing thing about the network code is the one time that bytes are sent without a header... I haven't investigated it too closely, but I'm hoping the client interprets it as the tail of another packet, in which case it is merely a server bug...

Re: The Mana World Bot

Posted: 15 Sep 2011, 04:32
by tmwTroLL007
good luck on that