dagoththorus wrote:Hello there.
I was wondering how is the client-auth working in Diablo2LoD. I want to write my own chat application like TopazChat - it's kinda old, and it's Windows-only and I need something for mobile devices (Android maybe). So, how packets are organized? How can I auth my client properly and safely (without nn data)? Is there any documentation around?
Greetz,
Android has a PvPGN chat client using telnet RAW TCP socket already:play.google.com/store/apps/details?id=bnet.pvpgn&hl=en
I am working on an iPhone app client
I wrote an HTML5 client here github.com/reillychase/pvpgn-html5-chat-client
Also I wrote a Python QT4 bot which can be compiled for Windows, Linux, Android or MacOS here: https://github.com/reillychase/WarChatter
To make a Telnet bot its just as simple as reading and writing to the TCP socket. You can see how the data looks by using "putty" connect to your-server.com:6112 type=RAW
To make a bot out of that, you just use RegEx and parse stuff so for example '^ERROR: ' means "anything that begins with ERROR:' -> color it red. When you see someone enter a chatroom (aka /^[(.*) enters]/) you add them to the list of people in the room, when you see /^[(.*) leaves]/ you remove them etc